#!/bin/sh -x

sed "s/%%DOMAIN%%/$1/g" ./host > /etc/apache2/sites-available/$1
mkdir /var/www/$1
chown -R ubuntu:www-data /var/www/$1
chmod -R 775 /var/www/$1
a2ensite $1
service apache2 restart


